#ifndef QHISTOGRAM_H
#define QHISTOGRAM_H

#include <QDialog>
#include <QPixmap>
#include "ui_qhistogram.h"

class QHistogram : public QDialog, public Ui::wdgHisto{
    Q_OBJECT
public:
    QHistogram(int docId,QWidget *parent = 0);
    void ShowHisto(int start,int end,int step);
    void SetData(int cellStart);
    void SetDataForIndex(int index);
private:
    int type; //type = 0 - Len, type = 1 - Bright
    int docId;
    int start;
    int end;
    int step;
    QPixmap pixmap;
private slots:
    void on_pushButton_clicked();
};

#endif // QHISTOGRAM_H
